<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <style>
        .fade-enter-active, .fade-leave-active {
            transition: opacity 1s;
        }

        .fade-enter, .fade-leave-to {
            opacity: 0;
        }

        .move-enter-active {
            transition: all 1s;
        }

        .move-leave-active {
            transition: all 3s;
        }

        .move-enter, .move-leave-to {
            opacity: 0;
            transform: translateX(20px);
        }
    </style>
</head>
<body>

<div id="demo">
    <button @click="show = !show">Toggle</button>
    <p v-show="isShow"></p>

    <transition name="fade">
        <p v-if="show">hello</p>
    </transition>
</div>

<hr>
<div id="demo2">
    <button @click="show = !show">Toggle2</button>

    <transition name="move">
        <p v-if="show">hello</p>
    </transition>
</div>


<script type="text/javascript" src="../js/vue.js"></script>
<script type="text/javascript">
    new Vue({
        el: '#demo',
        data: {
            show: true
        }
    })

    new Vue({
        el: '#demo2',
        data: {
            show: true
        }
    })
</script>
</body>
</html>